//
//  YSZUser.swift
//  swiftweibo6
//
//  Created by ysz on 15/11/29.
//  Copyright © 2015年 user. All rights reserved.
//

import UIKit

class YSZUser: NSObject
{
    /// 用户uid
    var id: Int = 0
    
    /// 用户名称
    var screen_name: String?
    
    ///用户头像地址
    var profile_image_url: String?
    
    ///是否时是微博认证用户 加V用户
    var verified: Bool = false
    
    /// verified_type 没有认证:-1   认证用户:0  企业认证:2,3,5  达人:220
    var verified_type: Int = -1
    
    ///会员等级 1-6
    var mbrank:Int = 0
    
    ///字典转模型
    init(dict:[String: AnyObject])
    {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    ///字典key在模型中找不到对应的属性 就调用这个方法
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
    ///打印
    override var  description: String
    {
            let properties = ["id", "screen_name", "profile_image_url", "verified", "verified_type", "mbrank"]
            return "\n\t\t用户模型: \(dictionaryWithValuesForKeys(properties))"
    }
}
